package subraSoft.fenix.model.oldSystem;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

import subraSoft.centaurus.model.util.CenHibernateUtil;

public class FenBorradoInicial {

	public static void main(String[] args) {
		
		SessionFactory sessionFactory = CenHibernateUtil.getInstance().getSessionFactory();
		
		Session session = sessionFactory.getCurrentSession();
		
		session.beginTransaction();
		
		session.createSQLQuery("TRUNCATE FEN_REPARACION").executeUpdate();
		
		session.createSQLQuery("TRUNCATE FEN_CLIENTE").executeUpdate();
		
		session.getTransaction().commit();
		
	}
}
